<?php         
    $this->title = "Accounts";
    $this->headTitle($this->title);
    
    
    
    
?>


<form>
<h1 align="center"> EDIT USER</h1>
    <table border="0" cellpadding="3" cellspacing="3">
    <tr>
        <th width="150">Username</th>
        <th width="200">Email</th>
        <th width="100">Status</th>
        <th>Role</th>
        
    </tr>
    <?php foreach($this->user as $user) : ?>
    <tr>
        <td><input name="txtUname"  type="textbox" readonly="true" value="<?php echo $this->escape($user->username); ?>" /> </td>
        <td><input name="txtEmail" type="text" readonly="true" value="<?php echo $this->escape($user->email); ?>" size="30" /> </td>
        <td><input name="txtStatus" type="text" readonly="true" value="<?php echo $this->escape($user->status); ?>" /> </td>
        <td><input name="txtRole" type="text" readonly="true" value="<?php echo $this->escape($user->role); ?>" size="10" /> </td>
        <td> <a href="<?php echo $this->url(array('controller'=>'index', 
            'action'=>'edit', 'id'=>$user->id));?>"> Edit </a></td>
    </tr>
    <?php endforeach; ?>
    </table>
</form>